package com.itheima.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.EmpExpr;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/*参考接口文档的响应数据*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class EmpVo {
    private Integer id;
    private String username;
    private String password;
    private String name;
    private Integer gender;
    private String phone;
    private Integer job;
    private Integer salary;
    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate entryDate;
    private Integer deptId;

    private String deptName; //按照接口文档设计（API文档）
    private List<EmpExpr> exprList; //按照接口文档设计（API文档）

    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
